/*
 * Copyright (c) GoKeep by gokeep.org. 2022-2023. All rights reserved
 */
package org.gokeep.common.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "system.mongodb")
public class MongodbProperties {
    /**
     * 是否自动创建索引
     */
    private boolean autoIndexCreation = true;

    /**
     * 是否有验证码校验
     */
    private String authenticationDatabase = "admin";

    /**
     * 主机地址
     */
    private String host;

    /**
     * 端口
     */
    private Integer port;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 连接数据库
     */
    private String database;
}